﻿using MJPEGDecoderWinRT.Common;
using System;
using System.Collections.Generic;
using System.Text;

namespace MJPEGDecoderWinRT.Model
{
    public class Camera: BindableBase
    {
        private string _id;
        string _name;
        string _uri;
        string _password;
        string _userName;
        string _cameraManufacturerName;
        string _cameraModelName;
        string _cameraResourcePath;
        string _cameraStreamName;

        public Camera()
        {
            _name = _uri = _password = _userName = _cameraManufacturerName = _cameraModelName = _cameraResourcePath = "";
            _cameraStreamName = "unspecified";
            _id = Guid.NewGuid().ToString("N");
        }

        public string Name
        {
            get { return _name; }
            set { SetProperty(ref _name, value); }
        }

        public string Uri
        {
            get { return _uri; }
            set { SetProperty(ref _uri, value); }
        }

        public string Password
        {
            get { return _password; }
            set { SetProperty(ref _password, value); }
        }

        public string UserName
        {
            get { return _userName; }
            set { SetProperty(ref _userName, value); }
        }

        public string CameraManufacturerName
        {
            get { return _cameraManufacturerName; }
            set { SetProperty(ref _cameraManufacturerName, value); }
        }

        public string CameraModelName
        {
            get { return _cameraModelName; }
            set { SetProperty(ref _cameraModelName, value); }
        }

        public string CameraResourcePath
        {
            get { return _cameraResourcePath; }
            set { SetProperty(ref _cameraResourcePath, value); }
        }

        public string CameraStreamName
        {
            get { return _cameraStreamName; }
            set { SetProperty(ref _cameraStreamName, value); }
        }

        public string Id
        {
            get { return _id; }
            set { SetProperty(ref _id, value); }
        }

    }
}
